<?php
$this->breadcrumbs=array(
	'Categories',
);

if(Yii::app()->user->hasAuth(Group::TEACHER)){
$this->menu=array(
	array('Create Category', array('create')),
	array('Manage Category', array('admin')),
);
}
?>

<h1>Categories</h1>

<?php


$this->widget('CTreeView', array(
	'data' => Category::listing(),
	'animated' => 'slow',	
	'collapsed' => 'true',	
	'persist' => 'cookie',	
	'htmlOptions'=>array('class'=>'treeview-famfamfam')
	));

?>
